package com.byxy.ssm.demo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
//@Repository	//Dao
//@Component	// 通用
//@Controller	//控制类
//@Configuration //配置类

import com.byxy.ssm.demo.dao.ForumDao;
import com.byxy.ssm.demo.entity.Forum;
import com.byxy.ssm.demo.service.ForumService;

@Service	//业务类
@Transactional
public class ForumServiceImpl implements ForumService{
	@Autowired
	private ForumDao forumDao;
	@Override
	public List<Forum> findAll() {
		// TODO Auto-generated method stub
		return forumDao.find();
	}
	
}
